<?php
class FiletreeAction extends Action{
	public function _initialize()
	{
		$this->assign('root',C("WWW_PATH"));
	}
	public function dir()
	{
		$dir=dirtree(C('DIR'));
		$this->ajaxReturn($dir);
	}
	public function dirtest(){
		$d=dirtree(C('DIR'));
		var_dump($d);
		// $this->ajaxReturn($d);
		// echo json_encode(array("hi"=>"你好"));
	}
	public function test()
	{
		$this->display();
	}
	public function path()
	{
		$this->display();
	}
}